﻿@{
    
    Layout = "~/Views/Shared/_Layout.cshtml";
    List<Onlyle.Model.E_GaoXiao_Article> DetailList = Model;
    string picPath = "http://uimg.fotoat.com/pic/gaoxiao/{2}/{0}/{1}";
    if (DetailList.Count > 0)
    {
        ViewBag.Title = DetailList[0].GaoXiao_ContentTitle;
    }
    else
    {
        return;
    }
    bool wangzhaitag = false;
    if (Request.Path.Contains("wangzhai"))
    {
        wangzhaitag = true;
    }
    
}

<div class="wrap" style="min-height:450px;height:auto!important;height:450px;">
    <div class="container">
       <section>
          <div class="row">
              <div class="span6 offset1">
                  @if (DetailList.Count > 0)
                  {
                      string imgPath = "";
                      imgPath = @DetailList[0].GaoXiao_ImgAddress == "blank" ? "http://uimg.fotoat.com/pic/blank.gif" : string.Format(picPath, Convert.ToDateTime(DetailList[0].GaoXiao_ContentFromDate).ToString("yyyy-MM-dd"), DetailList[0].GaoXiao_ImgAddress, DetailList[0].GaoXiao_Type)+".jpg";
                      <div class="post">
                          <h2 class="title"><span>@DetailList[0].GaoXiao_ContentTitle</span></h2>
                          <p>@DetailList[0].GaoXiao_Content</p>
                          @if (DetailList[0].GaoXiao_ImgAddress_Y.Length > 0)
                          {
                              imgPath = DetailList[0].GaoXiao_ImgAddress_Y;
                              if (imgPath == "blank")
                              {
                                  imgPath = "http://uimg.fotoat.com/pic/blank.gif";
                              }
                          }
                         
                              <img  src="@imgPath" alt="@DetailList[0].GaoXiao_ContentTitle"/>
                         
                          <div class="post_info">
                                	    <div class="fleft">来源: <span>@DetailList[0].GaoXiao_ContentFrom</span> / By @DetailList[0].GaoXiao_ContentFromDate / Tags <span>@DetailList[0].GaoXiao_Type</span></div>
                                        <div class="fright" style="padding-top:5px">
                                            @RenderPage("~/Views/Shared/_share_litter.cshtml", new { sharttitle = DetailList[0].GaoXiao_ContentTitle,
                                           sharturl = "http://www.onlyle.com/gaoxiao/detail/" + DetailList[0].GaoXiao_PK, shartpic = imgPath })
                                        </div>                                    
                                	    <div class="clear"></div>
                                    </div> 
                      </div>
                  }         
                  </div>              
              <div class="span4">
                  <div class="sidebar">
                  @RenderPage("~/Views/Shared/_gaoxiao_tag.cshtml") 
                  </div>
                  @if (DetailList.Count > 1)
                  {
                      string imgPath = "";
                      imgPath = @DetailList[1].GaoXiao_ImgAddress == "blank" ? "http://uimg.fotoat.com/pic/blank.gif" : string.Format(picPath, Convert.ToDateTime(DetailList[1].GaoXiao_ContentFromDate).ToString("yyyy-MM-dd"), DetailList[1].GaoXiao_ImgAddress, DetailList[1].GaoXiao_Type)+".jpg";
                      <a href="~/gaoxiao/detail/@DetailList[1].GaoXiao_PK">
                        <img src="~/Content/img/下一个.png" />
                        <div class="container_i">
                            <div class="content_i">
                                @*<span>@DetailList[1].GaoXiao_ContentTitle</span>*@
                                <p>@{string content = DetailList[1].GaoXiao_Content.Length > 30 ? Industry.Framework.Common.Helper.StringHelper.ClipString(DetailList[1].GaoXiao_Content, 30) : DetailList[1].GaoXiao_Content;}
                                    @content
                                </p>
                                @if (DetailList[1].GaoXiao_ImgAddress_Y.Length > 0)
                                {
                                    imgPath = DetailList[1].GaoXiao_ImgAddress_Y;
                                    if (imgPath == "blank")
                                    {
                                        imgPath = "http://uimg.fotoat.com/pic/blank.gif";
                                    }
                                }
                              
                                    <img src="@imgPath" />
                                
                            </div>
                            <s><i></i></s>
                        </div>
                      </a>
                  }
              </div>
          </div> 
          <div class="row">
              <div class="span8 offset2">
                  <div id="SOHUCS"></div> 
              </div>
          </div>     	
       </section>         
    </div>
</div>
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1852680" charset="utf-8"></script>
<script>
    var jiathis_config = {

    }
    function setShare(title, url, pic) {
        jiathis_config.title = title;
        jiathis_config.url = url;
        jiathis_config.summary = '--onlyle.com';
        jiathis_config.pic = pic;
    }
</script>
